﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="UI.Module.Statistical.View.Index" %>

<%@ Register Src="../../../UserControl/UI/Pager.ascx" TagName="Pager" TagPrefix="mereg" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>酒聚汇投资者查看平台-门店收益详细</title>
    <link href="../../../css/StudentStyle.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <h2 class="mbx" style="padding: 20px 0 0 10px; border: none;">
            <span style="font-size: 2em; font-family:宋体; font-weight:bold;color: black;">当前门店:</span>
            <asp:DropDownList ID="ddlistShop" runat="server" OnSelectedIndexChanged="ddlistShop_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
            &nbsp;统计方式:
            <asp:DropDownList ID="ddlistType" runat="server" OnSelectedIndexChanged="ddlistType_SelectedIndexChanged" AutoPostBack="true">
                <asp:ListItem Value="1">按天统计</asp:ListItem>
                <asp:ListItem Value="2">按月统计</asp:ListItem>
                <asp:ListItem Value="3">按年统计</asp:ListItem>
            </asp:DropDownList></h2>
        <div class="cztable" style="padding: 20px 10px;">
            <style>
                .table {width: 99%; min-width: 1900px;}
                .pagination  ul li {float: left; padding: 0 5px;}
            </style>
            <asp:GridView ID="grdlist" runat="server" CssClass="table table-bordered table-striped with-check" EnableViewState="true" EmptyDataText="未找到相关数据" EmptyDataRowStyle-HorizontalAlign="Center" AutoGenerateColumns="false" OnRowCreated="grdlist_RowCreated">
                <Columns>
                    <asp:BoundField HeaderText="统计日期" ItemStyle-Width="100px" DataFormatString="{0:yyyy-MM-dd}" ItemStyle-HorizontalAlign="Center" DataField="StatDate" />
                    <asp:BoundField HeaderText="订单数" DataField="SellNum" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="总金额" DataField="SellMoney" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="总收益" DataField="SellInCome" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="退货单数" DataField="SellBackNum"  ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="退货单总金额" DataField="SellBackMoney" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="退货单总支出" DataField="SellPay" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="订单数" DataField="LargeNum" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="总金额" DataField="LargeMoney" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="总收益" DataField="LargeInCome" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="退货单数" DataField="LargeBackOrderNum" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="退货单总金额" DataField="LargeBackOrderMoney" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="退货单总支出" DataField="LargePay" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="订单数" DataField="SendNum" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="总金额" DataField="SendMoney" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="总收益" DataField="SendInCome" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="退货单数" DataField="SendBackNum" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="退货单总金额" DataField="SendBackMoney" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="退货单总支出" DataField="SendPay" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="订单数" DataField="TempOrderNum" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="总金额" DataField="TempOrderMoney" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="总金额" DataField="AllOrderMoney" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="收益合计" DataField="AllInCome" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="退单总金额" DataField="AllBackMoney" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="支出合计" DataField="AllPay" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" />
                    <asp:BoundField HeaderText="最终收益" DataField="InCome" DataFormatString="{0:F2}" ItemStyle-HorizontalAlign="Right" />
                </Columns>
            </asp:GridView>
            <mereg:Pager runat="server" ID="Pager" OnBindData="Pager_BindData" />
        </div>
        <asp:HiddenField ID="hidshopid" runat="server" />
    </form>
</body>
</html>
